import { uiwu } from "@/api/interface/interface"
import type {countItf, rechargeListRequestItf, rechargeListResultItf} from "./type"

/** 首页统计一级粉丝充值总和 **/
export const countFanApi = async(): Promise<any> => {
    return await uiwu.get({
        url: `fans/countFirstFansRecharge`,
    })
}

/** 首页统计 **/
export const countsApi = async(data: object): Promise<any> => {
    return await uiwu.get({
        url: `fans/count`,
        data
    })
}

/** 首页充值排行榜 **/
// ResponseData<rechargeListResultItf>
export const rechargeListApi = async(data: rechargeListRequestItf): Promise<any> => {
    return await uiwu.get({
        url: `fans/rechargeList`,
        data
    })
}

/** 首页结算分成 **/
export const countSettleApi = async(): Promise<any> => {
    return await uiwu.get({
        url: `fans/countSettle`,
    })
}

/****/
